/**
 * Created by yuji on 2015/10/28.
 */

var fs = require('fs');

/**
 * 根据版本控制软件生成文件列表
  * @param str
 * @returns {Array}
 */
var fileList = function(str){
    return ['style.css','demo.css','demo.js','images/logo.gif','images/body-bg.png'];
}


module.exports = {
    list: fileList,
    //根据log路径返回文件列表
    listFromPath: function(path){
        var str = fs.readFileSync(path).toString();
        return fileList(str);
    }
}
